.card {
  position: relative;
  cursor: pointer;

  .info-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;

    .private-article {
      position: absolute;
      top: 20px;
      right: 20px;
    }

    .info {
      transition: all 0.3s ease-out 0s;
      white-space: nowrap;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      color: white;
      text-align: left;
      width: 100%;
      background-color: rgba(#000, 0.3);
      padding-left: 10%;
      box-sizing: border-box;

      .ant-tag {
        margin-top: 4px;
      }

      .create-time,
      .title {
        text-overflow: ellipsis;
        overflow: hidden;
        width: 100%;
      }

      >.title {
        font-size: var(--Font-Size-Title-Large);
      }
    }

    &:hover {
      .info {
        backdrop-filter: blur(3px);
      }
    }
  }

  &:hover {
    .ant-image-img {
      transform: scale(1.1);
    }
  }

  .ant-image {
    pointer-events: none;
    border-radius: 10px;
    width: 100%;

    .ant-image-img {
      aspect-ratio: 16/9;
    }
  }

  &.card-item {
    .info-wrapper {
      overflow: hidden;

      .info {
        position: absolute;
        padding: 0;
        background: initial;
        width: max-content;
        top: 20px;
        left: 20px;

        .ant-tag {
          margin: 0;
        }
      }

      &:hover {
        >.introduction {
          opacity: 1;
        }

        >.title {
          opacity: 0;
        }
      }

      >.introduction {
        opacity: 0;
      }

      >.title,
      >.introduction {
        position: absolute;
        width: 100%;
        height: 44px;
        line-height: 21px;
        border-radius: 0 0 10px 10px;
        bottom: 0;
        left: 0;
        box-sizing: border-box;
        color: white;
        padding: 0 10px;
        font-size: 16px;
        background-image: linear-gradient(rgba(#000, 0.3), rgba(#000, 0.7));
        transition: all 0.3s ease-out 0s;
        overflow: hidden;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
      }
    }
  }
}